import request from '../utils/request'
// import axios from 'axios'

// const _baseUrl=request.baseUrl.dev
// const apiUrl=_baseUrl
// console.log(apiUrl)

// axios.defaults.baseURL=apiUrl

// //封装get请求
// export function get(url,params={}){
//     return axios.get(url,{params:params})
// }

// //封装post请求
// export function post(url,data={}){
//     return axios.get(url,data)
// }

let api = "/api"
let homeServer = "/homeServer" //首页
let menuServer = "/menuServer" //分类页
let detailServer = "/detailServer"
if(process.env.NODE_ENV == "development"){
  api = request.baseUrl.dev
  homeServer = api + homeServer
  menuServer = api + menuServer
  detailServer=api +detailServer
}
export {
  homeServer,
  menuServer,
  detailServer
}
